package com.adinnet.api.sign.service;

import com.adinnet.api.child.model.Child;
import com.adinnet.api.sign.model.Sign;
import com.adinnet.core.JsonResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 签到记录 服务类
 * </p>
 *
 * @author chenjia
 * @since 2020-12-03
 */
public interface SignService extends IService<Sign> {

    /**
     * 获取签到记录
     * @param year
     * @param month
     * @param childId
     * @return
     */
    List<Sign> getSignRecord(Integer year,Integer month, Integer childId);

    /**
     * 签到
     * @param childId
     * @return
     */
    JsonResult sign(Integer childId);

    Integer getIsSign(Integer childId);

    Integer getContinueSignNum(Child child);
}
